package com.liuhongwei.test.mapper;

import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.liuhongwei.test.entity.po.SysCountry;
import com.liuhongwei.test.mapper.SysCountryMapper;
import com.liuhongwei.test.entity.query.SysCountryQuery;
/**
 * 国家表ExtendMapper
 * @auther: 刘洪玮
 * @date: 2025-07-24 11:32
 */
public interface SysCountryExtendMapper extends SysCountryMapper {

	/**
	 * 根据Uuid查询
	 */
	SysCountry selectByUuid (@Param("uuid") String uuid);

	/**
	 * 根据Uuid更新
	 */
	Integer updateByUuid (@Param("bean") SysCountry sysCountry, @Param("uuid") String uuid);

	/**
	 * 根据Uuid删除
	 */
	Integer deleteByUuid (@Param("uuid") String uuid);

	/**
	 * 根据Code查询
	 */
	SysCountry selectByCode (@Param("code") String code);

	/**
	 * 根据Code更新
	 */
	Integer updateByCode (@Param("bean") SysCountry sysCountry, @Param("code") String code);

	/**
	 * 根据Code删除
	 */
	Integer deleteByCode (@Param("code") String code);

	/**
	 * 查询数量
	 */
	Integer selectCount (@Param("query") SysCountryQuery SysCountryQuery);

	/**
	 * 分页列表查询
	 */
	List<SysCountry> selectList (@Param("query") SysCountryQuery SysCountryQuery);

	/**
	 * 批量插入
	 */
	Integer insertBatch (@Param("list") List<SysCountry> list);

	/**
	 * 批量插入或更新
	 */
	Integer insertOrUpdateBatch (@Param("list") List<SysCountry> list);

}